package practice_2025_10.practice_10_16;

public class Main {

    public static void main(String[] args) {
        Father father = new Father();
        Son son = new Son();
        System.out.println(son.a);
    }
}
class Father {
    public Father() {
        System.out.println("father");
    }
}

class Son extends Father {
    String a;
    public Son() {
        System.out.println("son");
        a = "bac";
    }
}
